package com.jinbooks.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinbooks.entity.customer.Customer;
import com.jinbooks.entity.customer.CustomerAggregate;
import com.jinbooks.entity.customer.dto.CustomerPageDto;
import org.apache.ibatis.annotations.Param;

/**
 * 客户聚合信息Mapper接口
 *
 * @author wuyan
 */
public interface CustomerAggregateMapper extends BaseMapper<CustomerAggregate> {

    /**
     * 分页查询
     *
     * @param page 分页参数
     * @param dto  查询参数
     * @return 查询结果
     */
    Page<CustomerAggregate> customerPageList(Page<Customer> page, @Param("dto") CustomerPageDto dto);

    CustomerAggregate getFullInfoById(@Param("id") String id, @Param("workspaceId") String workspaceId);

}